package com.qinghong.scheduling.config;

import java.util.concurrent.ScheduledFuture;

public class ScheduledTask {

    ScheduledFuture future;

    public void cancel(){
        ScheduledFuture<?> future = this.future;
        if (future != null){
            future.cancel(true);
        }
    }
}
